class KindsObj {
  late List<KindsData> product;

  KindsObj({required this.product});

  KindsObj.fromJson(Map<String, dynamic> json) {
    if (json['product'] != null) {
      product = [];
      json['product'].forEach((v) {
        product.add(new KindsData.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['product'] = this.product.map((v) => v.toJson()).toList();
    return data;
  }
}

class KindsData {
  late int pid;
  late String kindName;
  late String used;
  late String img;
  late String bimg;
  late String mimg;
  late int status;

  KindsData(
      {required this.pid,
      required this.kindName,
      required this.used,
      required this.img,
      required this.bimg,
      required this.mimg,
      required this.status});

  KindsData.fromJson(Map<String, dynamic> json) {
    pid = json['pid'];
    kindName = json['kind_name'];
    used = json['used'];
    img = json['img'];
    bimg = json['Bimg'];
    mimg = json['Mimg'];
    status = json['status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['pid'] = this.pid;
    data['kind_name'] = this.kindName;
    data['used'] = this.used;
    data['img'] = this.img;
    data['Bimg'] = this.bimg;
    data['Mimg'] = this.mimg;
    data['status'] = this.status;
    return data;
  }
}
